/*
 * @Author: your name
 * @Date: 2021-01-06 14:11:16
 * @LastEditTime: 2021-01-25 20:28:08
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \express-seed\routes\admin\index.js
 */
// 引入路由
// const express = require('express')
const indexRouter = require('./home');
const usersRouter = require('./users');
const sellCodeRouter = require('./sellCode')
const pageRouter = require('./page')
const contentRouter = require('./content')
// var app = express();
// 使用路由
module.exports = (app)=> {
    app.use('/admin', indexRouter);
    app.use('/admin/users', usersRouter);//管理员相关
    app.use('/admin/sell_code', sellCodeRouter)//销售相关
    app.use('/admin/page', pageRouter)//页面相关
    app.use('/admin/content', contentRouter)//页面内容
}
